package cn.byapps.hw.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * 教师添加作业的附件实体
 */
@Entity
@DiscriminatorValue("A")
public class HomeworkRequirement extends TeacherFile {
    @JsonIgnore
    @ManyToOne
    @JoinColumn(name = "homework_id")
    private Homework homework;
}
